package com.example.treasure_back.model;

import com.baomidou.mybatisplus.annotation.*;
import com.example.treasure_back.enumerate.CoinChangeType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("coin_change")
public class CoinChangeModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String email;
    private Integer changeNum;
    private Integer goodsId;
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;
    private CoinChangeType reason;
    private Integer coin;
}
